package com.yb.designpattern.structure.proxy;

public class BossProxy implements Boss{
	private Boss boss;
	//代理模式将要代理的类在编译时就已确定，侧重于将被代理的类与客户端隔离
	public BossProxy(){
		boss = new BossImpl();
	}
	public void resume(){
		System.out.println("筛选简历");
		boss.resume();
		System.out.println("整理通过的简历");
	}
	public void interview(){
		System.out.println("引导面试者");
		boss.interview();
		System.out.println("面见HR");
	}
}
